Skip to content

fix: Pipeline upsert TypeError (full e2e test 1773867349) (#88888)#4

Closed
aviruthen wants to merge 1 commit intomasterfrom
fix/pipeline-upsert-typeerror-full-e2e-test-1773867349-88888
Closed

fix: Pipeline upsert TypeError (full e2e test 1773867349) (#88888)#4
aviruthen wants to merge 1 commit intomasterfrom
fix/pipeline-upsert-typeerror-full-e2e-test-1773867349-88888

Conversation

@aviruthen
Copy link
Copy Markdown
Owner

Description

This PR fixes a TypeError in Pipeline.upsert() that occurs when role_arn is passed as a dictionary instead of a string. The fix extracts the ARN string from the dict before passing it to the API.

Also adds unit tests covering string role_arn, dict role_arn, and invalid type handling.

Related Issue

Fixes #88888

Changes Made

  • Modified src/sagemaker/workflow/pipeline.py: Added type checking for role_arn
  • Added tests/unit/sagemaker/workflow/test_pipeline_upsert.py: 3 test cases

AI-Generated PR

This PR was automatically generated by the PySDK Issue Agent.

  • Confidence score: 85%
  • Classification: bug
  • SDK version target: V3

Merge Checklist

  • Changes are backward compatible
  • Commit message follows prefix: description format
  • Unit tests added/updated
  • Integration tests added (if applicable)
  • Documentation updated (if applicable)

@aviruthen aviruthen closed this Mar 18, 2026
@aviruthen aviruthen deleted the fix/pipeline-upsert-typeerror-full-e2e-test-1773867349-88888 branch March 18, 2026 20:57
aviruthen added a commit that referenced this pull request Apr 8, 2026
aviruthen pushed a commit that referenced this pull request Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant